package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IAlertRuleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 设备数据报警规则校验定时任务
 *
 * @Author mr.zhao
 * @Date 2025/5/29 15:27
 */
@Component("alertRuleJob")
@Slf4j
public class AlertRuleJob {
	@Autowired
	private IAlertRuleService alertRuleService;

	/**
	 * 定时进行设备数据对应的报警规则校验,将报警数据保存到对应表中
	 */
	public void alertRuleFilter(){
		alertRuleService.alertRuleFilter();
		log.info("[设备报警定时任务]处理报警数据~~~");
	}
}
